package com.lifeng.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: lifeng
 * @description:
 **/
@Data
public class User implements Serializable {
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    private String uname;

    private String sex;

    private Integer age;

    private String phone;
    //逻辑删除
    @TableLogic
    private Integer deleted;

    //自动填充
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
